package com.adminx.service.impl;
import java.util.List;
import com.adminx.dao.CategoryDao;
import com.adminx.dao.impl.CategoryDaoImpl;
import com.adminx.po.Category;
import com.adminx.service.CategoryService;


/*
 * 新闻类别Service接口实现类
 */
public class CategoryServiceImpl implements CategoryService {

	private CategoryDao categoryDao = new CategoryDaoImpl();
	@Override
	public List<Category> findCategoryList() {
		return this.categoryDao.selectCategoryList();
	}
	@Override
	public Category findCategoryById(Integer categoryId) {
		return this.categoryDao.getCategoryById(categoryId);
	}
}
